package com.kyub.spring.gears.model;

/**
 * Descriptor for Collection typed properties
 */
public class CollectionPropertyDescriptor implements PropertyDescriptor {
    private String name;

    private String allowedRoles = "ROLE_ANONYMOUS";

    private PojoDescriptor pojoDescr;

    public String getName() {
        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public PojoDescriptor getPojoDescr() {
        return pojoDescr;
    }

    public String getAllowedRoles() {
        return allowedRoles;
    }

    public void setAllowedRoles(String allowedRoles) {
        this.allowedRoles = allowedRoles;
    }

    public void setPojoDescr(PojoDescriptor pojoDescr) {
        this.pojoDescr = pojoDescr;
    }

    public String toString() {

        return this.hashCode() + " " + this.name;
    }
}
